package com.woniu.airent.mapper;

import com.woniu.airent.dto.HouseDto;
import com.woniu.airent.entity.Items;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ItemsMapper {
    int deleteByPrimaryKey(Integer itemId);

    int insert(Items record);

    Items selectByPrimaryKey(Integer itemId);

    List<Items> selectAll();

    int updateByPrimaryKey(Items record);

    @Select("select * from t_items")
    List<Items> selectAllItems();

    int insertItems(@Param("house") HouseDto house);

    List<Items> selectMyItems(String houseNumber);
}
